import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    redirect:"/xiaoqu"
  },
  {
    path: "/xiaoqu",
    component:()=>import("@/components/XiaoQuComponent")
  },
    //帮买取路由
  {
    path: "/help/mendian", //仅仅是路由名长了一点
    component:()=>import("@/components/help/MenDianComponent"),
  },
{
    path: "/help/yizhan", //仅仅是路由名长了一点
    component:()=>import("@/components/help/YiZhanComponent"),
  },
{
    path: "/help/shangpin", //仅仅是路由名长了一点
    component:()=>import("@/components/help/ShangPinComponent"),
  },
{
    path: "/help/dingdan", //仅仅是路由名长了一点
    component:()=>import("@/components/help/DingDanComponent"),
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
